package com.lyl.syt.modules.mongodb.dao;

import com.lyl.syt.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleDao extends MongoRepository<Schedule,String> {
    Schedule getByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    //根据医院编号、科室编号和工作日期，查询排班详细信息
    List<Schedule> findByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toJdkDate);
}
